Skip to content

Conversation

@rbair23
Copy link
Contributor

@rbair23 rbair23 commented Oct 28, 2025

Summary

  • Fixed Javadoc formatting warnings by moving misplaced comments and annotations to their correct positions
  • Replaced long comment dividers (////...) with cleaner format (// ----...)
  • Fixed orphaned Javadoc comments that were incorrectly positioned
  • Corrected a typo in TransactionSubmitter.java ("achive" → "achieve")

Details

These changes resolve compilation warnings related to:

  • Javadoc comments appearing after annotations instead of before
  • Javadoc comments appearing after the documented element instead of before
  • Inconsistent comment separator formatting across the codebase

Test plan

  • All existing tests pass
  • Code compiles without Javadoc-related warnings
  • No functional changes, only comment/documentation formatting

Copilot AI review requested due to automatic review settings October 28, 2025 19:02
@rbair23 rbair23 requested review from a team as code owners October 28, 2025 19:02
@rbair23 rbair23 requested a review from timo0 October 28, 2025 19:02
@lfdt-bot
Copy link

lfdt-bot commented Oct 28, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@rbair23 rbair23 force-pushed the 20719-compilation-fails branch from 69de3d7 to 98149f7 Compare October 28, 2025 19:04
@rbair23 rbair23 self-assigned this Oct 28, 2025
@rbair23 rbair23 force-pushed the 20719-compilation-fails branch from 98149f7 to a03f0f0 Compare October 28, 2025 19:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR standardizes comment formatting and corrects documentation placement across the codebase. The changes focus on improving code readability and maintaining consistent style guidelines without altering any functional behavior.

Key changes:

  • Replaced various separator comment styles (slashes, equals signs) with a uniform dash-based separator format
  • Moved misplaced Javadoc and annotation comments to their correct positions before the declarations they document
  • Corrected a spelling error from "achive" to "achieve"

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
VirtualMap.java Removed orphaned comment separator
StringLeaf.java Moved Javadoc from after annotations to before them
OutputNoEventsLostValidation.java Moved @SuppressWarnings annotation from before Javadoc to after
EnhancedKeyStoreLoaderTest.java Standardized section separator format
EnhancedKeyStoreLoader.java Standardized section separator format
Utilities.java Standardized section separator format
ConsensusImpl.java Standardized section separator format
SlowMockFCQueue.java Standardized section separator format across multiple sections
MockFCQueue.java Standardized section separator format across multiple sections
FCQueue.java Standardized section separator format across multiple sections
StateBuilder.java Converted Javadoc-style record field comments to single-line comments
TransactionSubmitter.java Corrected "achive" to "achieve" and moved field Javadoc before field declaration
PayloadDistribution.java Converted trailing Javadoc comment to single-line comment
StatsDemoMain.java Standardized section separator format
AtomicTokenCreateSpecs.java Moved @HapiTestLifecycle annotation from before Javadoc to after
SStoreSuite.java Moved @Tag annotation from before Javadoc comment to after
BlockRecordWriterV6.java Removed orphaned/duplicate Javadoc comment
KeyComparatorTest.java Standardized section separator format across multiple sections

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codacy-production
Copy link

codacy-production bot commented Oct 28, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.03% (target: -1.00%) 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (b70e90b) 104105 77557 74.50%
Head commit (3cd9d03) 104105 (+0) 77592 (+35) 74.53% (+0.03%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#21900) 1 1 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@codecov
Copy link

codecov bot commented Oct 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #21900      +/-   ##
============================================
+ Coverage     70.58%   70.62%   +0.03%     
- Complexity    24329    24341      +12     
============================================
  Files          2673     2673              
  Lines        104200   104200              
  Branches      10936    10936              
============================================
+ Hits          73547    73587      +40     
+ Misses        26597    26562      -35     
+ Partials       4056     4051       -5     
Files with missing lines Coverage Δ Complexity Δ
...impl/producers/formats/v6/BlockRecordWriterV6.java 80.00% <ø> (ø) 24.00 <0.00> (ø)
...com/swirlds/demo/platform/PayloadDistribution.java 35.89% <ø> (ø) 6.00 <0.00> (ø)
...om/swirlds/demo/platform/TransactionSubmitter.java 22.92% <100.00%> (ø) 3.00 <0.00> (ø)
...eue/src/main/java/com/swirlds/fcqueue/FCQueue.java 73.26% <ø> (ø) 49.00 <0.00> (ø)
.../main/java/com/swirlds/platform/ConsensusImpl.java 87.31% <ø> (+1.74%) 146.00 <0.00> (+1.00)
.../src/main/java/com/swirlds/platform/Utilities.java 48.14% <ø> (-1.86%) 24.00 <0.00> (-1.00)
...wirlds/platform/crypto/EnhancedKeyStoreLoader.java 67.01% <ø> (ø) 78.00 <0.00> (ø)
...c/main/java/com/swirlds/virtualmap/VirtualMap.java 77.06% <ø> (ø) 107.00 <0.00> (ø)

... and 21 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@Neeharika-Sompalli Neeharika-Sompalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @rbair23

Copy link
Contributor

@anthony-swirldslabs anthony-swirldslabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Copy link
Contributor

@joshmarinacci joshmarinacci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@lukelee-sl lukelee-sl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rbair23 rbair23 force-pushed the 20719-compilation-fails branch from a03f0f0 to 3cd9d03 Compare October 28, 2025 22:18
Copy link
Contributor

@netopyr netopyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks @rbair23

…omment placement

Addresses issue #20719 by fixing multiple categories of compiler warnings:
- Standardized comment separator formatting to comply with style guidelines
- Repositioned annotations to appear after Javadoc comments per Java best practices
- Corrected typos in documentation comments
- Removed incomplete or orphaned comment fragments

Signed-off-by: rbair23 <[email protected]>
@alex-kuzmin-hg
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants